u"""
OverFish CMS

Created on: Jul 7, 2011 2:03:42 PM

@author: Tomas Holub (tomas.holub@olc.cz)
@package: OverFishCMS

Model Exception
u"""

from overfish.libs.OverFishException import OverFishException

class ModelException(OverFishException):
    u"""
    Model Exception
    """
    def __init__(self, message, collection):

        # Call the base class constructor with the parameters it needs
        OverFishException.__init__(self, message)
        
        self.collection = collection